package cn.linkstudy.service;

import cn.linkstudy.entity.ChatRecord;
import java.util.List;

public interface ChatRecordService {
    void saveRecord(ChatRecord record);

    List<ChatRecord> getFirstMessagesByUser(Long userId);

    /**
     * 创建新会话，返回sessionId
     */
    String createNewSession(Long userId, String grade, String knowledgePoint);

    List<ChatRecord> getUserChats(Long userId, String sessionId);

    ChatRecord getHistory(Long userId, String sessionId);
}